package com.yihuier.yihuier.Mapper.Common;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface FileMapper {

    @Select("SELECT data_address,data_name from bz_meeting_data where data_id = #{data_id} AND data_status = 1 AND data_type = 1 LIMIT 1;")
    Map<String,String> selectDataAddressAndName(@Param("data_id") int data_id);

    @Select("SELECT data_address from bz_meeting_data where data_id = #{data_id} AND data_status = 1 AND data_type = 1 LIMIT 1;")
    String selectFileUrlForAndroid(@Param("data_id") int data_id);
}
